<script language="javascript" >
function check_frm2()
{
	r_form = document.frm_faq;
		if(r_form.re_user.value=='') {
			document.getElementById("id_re_user").innerHTML = "Bạn chưa nhập User name !";
			r_form.re_user.focus();
			return false;
		}
		if(r_form.re_pass1.value=='') {
			document.getElementById("id_re_pass1").innerHTML = "Bạn chưa nhập Mật khẩu !";
			r_form.re_pass1.focus();
			return false;
		}
		if(r_form.re_pass2.value=='') {
			document.getElementById("id_re_pass2").innerHTML = "Bạn chưa nhập lại Mật khẩu !";
			r_form.re_pass2.focus();
			return false;
		}
		if (r_form.re_pass2.value!=r_form.re_pass1.value) {
			document.getElementById("id_re_pass2").innerHTML = "Bạn đã nhập sai mật khẩu !";
			r_form.re_pass2.focus();
			return false;
		}
		if(r_form.re_fullname.value=='') {
			document.getElementById("id_re_fullname").innerHTML = "Bạn chưa nhập Họ tên !";
			r_form.re_fullname.focus();
			return false;
		}
		if(r_form.re_tel2.value=='') {
			document.getElementById("id_re_tel2").innerHTML = "Bạn chưa nhập số điện thoại !";
			r_form.re_tel2.focus();
			return false;
		}
		if (r_form.re_email.value.indexOf("@")<0 || r_form.re_email.value.indexOf(".")<0) {
			document.getElementById("id_re_email").innerHTML = "Bạn chưa nhập Email !";
			r_form.re_email.focus();
			return false;
		}

		if(r_form.re_address.value=='') {
			document.getElementById("id_re_address").innerHTML = "Bạn chưa nhập địa chỉ !";
			r_form.re_address.focus();
			return false;
		}
		

		return true;
}
</script>  
<!--begin left-->
 <? include_once("templates/left.html");?>
 <!-- end left-->
 <!-- begin content-->
<div id="content">
					
    
    <div class="top">
  <div class="left"></div>
  <div class="right"></div>
  <div class="center">
    <h1> Đăng ký thành viên</h1>
  </div>
</div>

<div class="middle">
  <table width="98%"  border="0" cellspacing="3" cellpadding="3">
							  <tr>
							    <td height="32"  colspan="2"><?=$html?></td>
						      </tr>
							  	<form name="frm_faq" method="post" action="<?=$action?>" onsubmit="return check_frm2();"  enctype="multipart/form-data">

							  <tr>
								<td height="31" align="right">Tên đăng nhập<font color="#FF0000" size="2">(*)</font></td>
								<td>
								  <input  type="text" name="re_user"  value="<?=$username?>" size="30" onblur=\'document.getElementById("id_re_user").innerHTML="";\'>
							  </td>
							  </tr>
							  <tr><td></td><td  id="id_re_user" class="alert"></td></tr>
							  <tr>
								<td align="right">Mật khẩu<font color="#FF0000" size="2">(*)</font></td>
								<td><input  type="password" name="re_pass1" size="30" onblur=\'document.getElementById("id_re_pass1").innerHTML="";\'></td>
							  </tr>
							  <tr><td></td><td  id="id_re_pass1" class="alert"></td></tr>
							  <tr>
								<td align="right">Nhập lại mật khẩu<font color="#FF0000" size="2">(*)</font></td>
								<td><input  type="password" name="re_pass2" size="30" onblur=\'document.getElementById("id_re_pass2").innerHTML="";\'></td>
							  </tr>
							  <tr><td></td><td  id="id_re_pass2" class="alert"></td></tr>
							  <tr>
								<td align="right">Họ tên<font color="#FF0000" size="2">(*)</font></td>
								<td><input  type="text" name="re_fullname"  value="<?=$fullname?>" size="30" onblur=\'document.getElementById("id_re_fullname").innerHTML="";\'></td>
							  </tr>
							  <tr><td></td><td  id="id_re_fullname" class="alert"></td></tr>
							  <tr>
								<td align="right">Điện thoại</td>
								<td><input  type="text" name="re_tel1" value="<?=$tel1?>" size="30" ></td>
							  </tr>
							  
							  <tr>
								<td align="right">Di động</td>
								<td><input type="text"   name="re_tel2" value="<?=$tel2?>" size="30" onblur=\'document.getElementById("id_re_tel2").innerHTML="";\' ></td>
							  </tr>
							  <tr><td></td><td  id="id_re_tel2" class="alert"></td></tr>
							  <tr>
								<td align="right">Email<font color="#FF0000" size="2">(*)</font></td>
								<td><input type="text"  name="re_email" value="<?=$email?>" size="30" onblur=\'document.getElementById("id_re_email").innerHTML="";\'></td>
							  </tr>
							  <tr><td></td><td  id="id_re_email" class="alert"></td></tr>
							  <tr>
								<td align="right">Địa chỉ<font color="#FF0000" size="2">(*)</font></td>
								<td><input  type="text" name="re_address" value="<?=$address?>"  size="30" onblur=\'document.getElementById("id_re_address").innerHTML="";\'></td>
							  </tr>
							  <tr><td></td><td  id="id_re_address" class="alert"></td></tr>
							  <tr>
								<td height="50">&nbsp;</td>
								<td><input type="submit" name="re_send" value=" Đăng ký thành viên " >
								  <input type="reset" name="Reset" value=" Làm lại "></td>
							  </tr>
							   </form>
							</table>
</div>

<div class="bottom">
  <div class="left"></div>
  <div class="right"></div>
  <div class="center"></div>
</div>

 
    

<!--end content-->
    
 
   